<?php

namespace app\admin\model\shopro;

use think\Model;


class Vipgold extends Model
{

    

    

    // 表名
    protected $name = 'shopro_vip_gold';
    
    // 自动写入时间戳字段
    protected $autoWriteTimestamp = 'int';

    // 定义时间戳字段名
    protected $createTime = 'createtime';
    protected $updateTime = false;
    protected $deleteTime = false;

    // 追加属性
    protected $append = [

    ];




    public function getStatusList()
    {
        return ['0' => __('Status 0'), '1' => __('Status 1')];
    }





    public function shoprogoldlable()
    {
        return $this->belongsTo('app\admin\model\shopro\Lable', 'gold_lable_id', 'id', [], 'LEFT')->setEagerlyType(0);
    }
}
